package com.farmer.redpacket.mapper;

import com.farmer.redpacket.entity.RedPacket;
import com.farmer.redpacket.entity.RedPacketExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface BaseRedPacketMapper {
    long countByExample( RedPacketExample example);

    int deleteByExample( RedPacketExample example);

    int deleteByPrimaryKey( Long id);

    int insert( RedPacket record);

    int insertSelective( RedPacket record);

    List<RedPacket> selectByExample( RedPacketExample example);

    RedPacket selectByPrimaryKey( Long id);

    int updateByExampleSelective(@Param("record") RedPacket record, @Param("example") RedPacketExample example);

    int updateByExample(@Param("record") RedPacket record, @Param("example") RedPacketExample example);

    int updateByPrimaryKeySelective( RedPacket record);

    int updateByPrimaryKey( RedPacket record);
}